package dacp.etl.kafka.hdfs.process.impl;

import org.apache.commons.lang.StringUtils;

import com.google.common.base.Objects;

import dacp.etl.kafka.hdfs.process.Processor;

public class DelProcessor implements Processor{ 
	private String dc;
	
	public DelProcessor(String dc){
		this.dc = dc;
	}
	
	@Override
	public String process(String ori) {
		return StringUtils.remove(ori, dc);
	}
	
	@Override
	public String toString(){
		return Objects.toStringHelper(this).add("delChar",dc).toString();
	}
}